package com.vincent.cloudribbon;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;

@Service
public class ClientService {

    @Autowired
    private RestTemplate restTemplate;

    public String reqClientService() {
        return restTemplate.getForObject("http://cloud-eureka-client/", String.class);
    }

    public String reqClientService2() {
        return restTemplate.getForObject("http://localhost:7102/", String.class);
    }

}
